{extend name="public:layout" /}
{block name="title"}优惠券列表{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 优惠券列表</a></li>
                <li class="active">发放优惠券</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="alert alert-warning">
                发放规则提醒:
                <p>1、一个用户只可以领取同一类型优惠券一张</p>
                <p>2、领取后固定时长类型优惠券开始计时，到期自动失效</p>
                <p>3、该页面发放规则遵循以上原则</p>
                <p>4、为保证执行效率，一批次发放300个会员</p>
            </div>
            <form method="post" class="form-horizontal" id="form">

                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会员类型(todo)</label>
                    <div class="col-sm-10">
                        <div class="btn-group" role="group">
                            <button type="button" class="btn btn-info">未下单会员</button>
                            <button type="button" class="btn btn-info">已下单会员</button>
                            <button type="button" class="btn btn-info">注册一星期会员</button>
                            <button type="button" class="btn btn-info">注册一个月会员</button>
                            <button type="button" class="btn btn-info">注册一年以上会员</button>
                            <button type="button" class="btn btn-info">男会员</button>
                            <button type="button" class="btn btn-info">女会员</button>
                            <button type="button" class="btn btn-info">自定义会员</button>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">发放会员</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="member_uids" value="" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">发送优惠券</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function(){
        ajaxSubForm('#btnSub');
    })
</script>
{/block}
</block>